package com.hypertech.core.ffmpeg.videoDao;


import java.util.ArrayList;
import java.util.List;

public class VideoOptions {

    private String cmd = "ffmpeg.exe";

    private String src;

    private String dest;

    private List<String> options = new ArrayList<>();

    public VideoOptions(String src, String dest) {
        this.src = src;
        this.dest = dest;
        options.add(cmd);
        options.add("-i");
        options.add(src);
    }
    public String getCmd() {
        return cmd;
    }

    public void setCmd(String cmd) {
        options.set(0,cmd);
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getDest() {
        return dest;
    }

    public void setDest(String dest) {
        this.dest = dest;
    }

    public List<String> getOptions() {
        return options;
    }

    public void setOptions(List<String> options) {
        this.options = options;
    }

    public void addOption(String option) {
        options.add(option);
    }

    /*初始化ffpmeg命令*/
    public List<String> build(){
        options.add(dest);
        return options;
    }

}